package cn.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单地址
 * </p>
 *
 * @author hxj
 * @since 2023-12-28
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private LocalDateTime createtime;

    private LocalDateTime updatetime;

    /**
     * 联系人-就是姓名
     */
    private String contacts;

    /**
     * 区域-定位到街道
     */
    private String areacode;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 全地址 areaCode+address
     */
    private String fulladdress;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 备用手机号
     */
    private String phoneback;

    /**
     * 固定电话
     */
    private String tel;

    /**
     * 邮编
     */
    private String postcode;

    /**
     * 电子邮件
     */
    private String email;

    private Long userId;


}
